package swim.sessionbean;

import java.net.UnknownHostException;
import java.text.ParseException;
import java.util.ArrayList;

import javax.ejb.Remote;
import javax.mail.MessagingException;
import javax.mail.internet.AddressException;

import swim.entitybeans.Registrato;

@Remote
public interface AccessoRemote {
	
	public Object login(String username, String password) throws SwimException;
	
	public void logout() throws SwimException;
	
	public boolean checkRegistrazione(String username, String password,String cpassword) throws SwimException;
	
	public Registrato completaRegistrazione(String nome,String cognome,String dataN,String indirizzo,String citta,String telefono,String descrizione,String username,String password, String cpassword, ArrayList<Integer> abilita) throws SwimException, ParseException, AddressException, UnknownHostException, MessagingException;
	
	

}
